<!DOCTYPE html>
<html>
<head>

    <meta charset="UTF-8">
    <title>提现</title>
    <meta name="viewport" content="width=100%; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    <link rel="stylesheet" href="/static/css/css.css" />
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_604068_hjvcfa62wb62mx6r.css" />
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
<style>
::-webkit-input-placeholder{
        font-size: 15px;
    }
</style>
</head>

<body  id="app">
    <header class="head headTitle"   style="position: relative">
        <!--href="{:url('/home/Worker/mywallet')}"-->
        <a class="back"  href="{:url('/home/Worker/mywallet')}" ><img src="/static/images/back_gray.png"></a>
        <h1 class="title">提现</h1>
    </header>
  <form   action="{:url('/home/Worker/tixian')}?cardid={$card.id}"  method="post" >



          <div   class="aa"   style="height: 60px;margin-top: 10px;background: white">
              <a href="{:url('/home/worker/selectcard')}">
                  <div >
                      <div  style="width: 20%;float: left;text-align: center;line-height: 60px;color: #1A65A3">
                          {if  $card["type"] == '1'}
                          <span  class="icon icon-jiansheyinxing" ></span>
                          {elseif  $card["type"] == '2'}
                          <span  class=" icon icon-ABC" ></span>
                          {elseif  $card["type"] == '3'}
                          <span  class="icon icon-youzhengyinxing" ></span>
                          {elseif  $card["type"] == '4'}
                          <span  class="icon icon-yinhang-zhongguorenminyinhang-" ></span>
                          {elseif  $card["type"] == '5'}
                          <span  class="icon icon-gongshangyinxing" ></span>
                          {elseif  $card["type"] == '6'}
                          <span  class="icon icon-zhaoshangyinhangbank1193432easyiconnet" ></span>
                          {elseif  $card["type"] == '7'}
                          <span  class="icon icon-zhongguoyinhangbank1193437easyiconnet" ></span>
                          {elseif  $card["type"] == '8'}
                          <span  class="icon icon-jiaotongyinxing" ></span>
                          {/if}
                      </div>
                      <div  style="width: 60%;float: left;margin-top: 10px">
                          {if  $card['type'] == 1}
                          <div >建设银行</div>
                          {elseif  $card["type"] == 2}
                          <div >农业银行</div>
                          {elseif  $card["type"] == 3}
                          <div >邮政银行</div>
                          {elseif  $card["type"] == 4}
                          <div >人民银行</div>
                          {elseif  $card["type"] == 5}
                          <div >工商银行</div>
                          {elseif  $card["type"] == 6}
                          <div >招商银行</div>
                          {elseif  $card["type"] == 7}
                          <div >中国银行</div>
                          {elseif  $card["type"] == 8}
                          <div >交通银行</div>
                          {/if}
                          <div  style="color: grey;">尾号{$card.cardnumber}储蓄卡</div>
                      </div>
                      <div style="width: 10%;float: right;line-height: 60px" >
                          <span  class="icon icon-jiantou">  </span>
                      </div>

                  </div>
              </a>

          </div>
        <div  style="background: #ffffff;margin-top: 20px;">
            <div  style="color: grey;height:35px;line-height: 30px;margin-left: 20px;padding-top: 8px">提现金额</div>
            <div   style="height:60px;line-height: 60px;margin-left: 20px;">
                <span  style="font-size:30px">￥</span>
                <input   name="jine"   placeholder="提现金额需大于100元 且为100的倍数"   class="yue" style="font-size:30px;height: 40px; width: 80%;border: none;border-bottom: 1px solid #f4f4f4" type="text">
            </div>
            <div   style="height:30px;line-height: 30px;margin-left: 20px;position: relative">
                <span   style="color: grey;">可用余额{$salary.money}元</span>
                <a  style="position: absolute;right: 10px;color: #fe8200"   class="alls">全部提现</a>
            </div>
        </div>
        <div class='demos-content-padded'>
                <a href="{:url('/home/Worker/mywallet')}"  style="background: #fe8200;"><button class="weui-btn " style="background: #fe8200;margin-top: 20px" type="submit">确认提现</button></a>
            </div>

</form>
</body>

<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
    $(".alls").click(function(){

        $(".yue").val("{$salary.money}")

    });

//
//    $(".weui-btn").click(function () {
//        if($("input").val()=="" ){
//            alert("提现金额不能为空，请填写提现金额");
//        }
//        else  if($("input").val() < 100){
//            alert("提现金额不能低于100元");
//        }
//        //        else {
//        //            window.location.href="{:url('home/worker/mycard')}";
//        //        }
//    });


//    function datatime() {
//        var  now = new  Data();
//        var year=now.getFullYear();
//        var months=now.getMonth()+1;
//        var  days= now.getData();
//        var  hours=now.getHours();
//        var  minutes=now.getMinutes();
//        var  time=year+'-'+months+'-'+days+'  '+hours+':'+minutes;
//        alert(time);
//    }

</script>



</html>
